<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function fun1(){
				window.alert(location.href)
			}
			function fun2(){
				window.alert(location.href="https://www.pzhu.cn")
			}
		</script>
	</head>
	<body>
		<button type="button" onclick="fun1()">获取</button>
		<button type="button" onclick="fun2()">设置</button>
	</body>
</html>
